package pl.kosmowska.ewelina.client.app.requestfactory;

import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.InvestmentDataProxy;
import pl.kosmowska.ewelina.server.dao.InvestmentDataDAO;
import pl.kosmowska.ewelina.server.locators.EntityServiceLocator;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;



@Service(value = InvestmentDataDAO.class, locator = EntityServiceLocator.class)
public interface InvestmentDataRequest extends RequestContext {

	  Request<InvestmentDataProxy> findInvestmentData(String id);
	  
	  Request<List<InvestmentDataProxy>> findInvestmentDataByUser();
	    
	  
	  Request<InvestmentDataProxy> persist(InvestmentDataProxy investmentDataProxy);
	  
	  Request<Boolean> deleteInvestmentData(String id);
  
}
